﻿<UserControl x:Class="SEWilson.ScreenSaver.TheArmory.UI.ItemInfoControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:armory="clr-namespace:SEWilson.ScreenSaver.TheArmory.UI"
    Height="64" 
             Width="64"
             Background="Transparent"
             >
    <Grid>
        <Grid.Resources>
            <Style TargetType="ToolTip">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="BorderThickness" Value="0" />
                <Setter Property="Padding" Value="0" />
            </Style>
        </Grid.Resources>
        <Image Stretch="Fill"
               Source="{Binding ItemImage}"
               >
            <Image.ToolTip>
                    <Border BorderThickness="3"
                            CornerRadius="7"
                            Background="#222222" 
                            BorderBrush="{Binding QualityColor}" 
                            Width="Auto" Height="Auto">
                        <armory:ItemInfoTooltipControl DataContext="{Binding}" />
                    </Border>
            </Image.ToolTip>
        </Image>
    </Grid>
</UserControl>
